package com.easy.common.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@AllArgsConstructor//构造方法
@NoArgsConstructor//无参构造方法
@TableName("goods")
public class Goods {
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;
    private String name;
    private String title;
    private String category;//分类
    private String image;
    private String origin;//发货地
    private String detail;//详情
    private BigDecimal price;
    private Integer stock;//库存
    private Integer status;//禁用状态
    private LocalDateTime create_time;
    private LocalDateTime update_time;
    private Integer is_del;
}
